package com.petc.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value = "petc_login_log")
public class LoginLog {

    @TableId
    @TableField(value = "id")
    private Integer id;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "user_name")
    private String userName;

    @TableField(value = "phone")
    private String phone;

    @TableField(value = "device_id")
    private String deviceId;

    @TableField(value = "login_ip")
    private String loginIp;

    @TableField(value = "login_time")
    private LocalDateTime loginTime;

    @TableField(value = "login_state")
    private String loginState;
}
